package com.h817.Shijiang;

/**
 * 对Java老师进行授课试讲
 * 1）Java老师
 *      属性：
 *             姓名
 *             从业经验
 *             试讲内容
 *       行为
 *              讲课
 * 2）东软类
 *       行为：
 *              试讲
 *
 */
public class JavaTea {
    private String tname;
    private String cancer;
    private String neirong;
    private String type;
    public String getCancer() {
        return cancer;
    }

    public void setCancer(String cancer) {
        this.cancer = cancer;
    }

    public String getNeirong() {
        return neirong;
    }

    public void setNeirong(String neirong) {
        this.neirong = neirong;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public JavaTea(String tname) {
        this();
        this.tname = tname;

    }

    public JavaTea() {
        type = "java";
    }
    public void jiangKe(){
        System.out.println("我叫"+tname+getCancer()+"今天讲课的内容是 " +
                "1111" +getNeirong());


    }


}
